<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta content="telephone=no,email=no" name="format-detection">
  <title>在线客服</title>
</head>
<body>
  <div id="backNav" style=" display: none; z-index: 19891015; position: fixed; top: 0; left: 0; background: #fff; width: 100%; height: 30px; line-height: 30px; padding-left: 10px;" onclick="window.history.go(-1)"><img src="../images/back.png" style="position: absolute;top: 0; width: 20px; height: 20px; margin-top: 5px;" onclick="window.history.go(-1)"><h3 style="text-align: center">在线客服</h3></div>
  <script src="layui/layui.js"></script>
  <script src="layui/workerman-kefu.js"></script>
  <script>
    var deviceType = getDeviceType()
    if (deviceType == 'Android' || deviceType == 'iPhone') {
      document.getElementById('backNav').style.display = 'block'
    }

    function getDeviceType() {
      var agent = navigator.userAgent
      var device = ''
      if (agent.indexOf('MicroMessenger') !== -1) {
        device = 'weixin'
      } else if (agent.indexOf('Android') !== -1) {
        device = 'Android'
      } else if (agent.indexOf('iPhone') !== -1) {
        device = 'iPhone'
      } else if (agent.indexOf('iPad') !== -1) {
        device = 'iPad'
      } else if (agent.indexOf('Windows') !== -1) {
        device = 'Windows'
      } else {
        device = 'unknown'
      }
      return device
    }
  </script>
</body>
</html>